* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
}

html {
  overflow: hidden;
}

body {
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.list-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  position: relative;

  &:hover {
    .item-image::before {
      background-color: rgba(0, 0, 0, 0.2);
    }
  }
  .item-image {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    &::before {
      /* 遮罩 */
      position: absolute;
      content: '';
      display: block;
      width: 100%;
      height: 100%;
      transition: all 0.3s ease;
      background-color: rgba(0, 0, 0, 0.4);
    }
  }
  .item-text {
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
    color: #ffffff;
  }
}

@for $i from 1 through 6 {
  .list-item:nth-child(#{$i}) {
    .item-image {
      background: url('./images/#{$i}.jpg') no-repeat center 0px fixed;
    }
  }
}

.item-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.item-desc {
  font-size: 1.2rem;
}
